package com.borened.netty.protocol.mqtt;

import io.netty.handler.codec.mqtt.MqttQoS;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

/**
 * @author chengcaihua
 * @description 持久化消息
 * @since 2023-11-14 11:46
 */
@Data
@Builder
public class MqttPersistentMessage {

    private String topic;

    private byte[] payload;

    private MqttQoS qos;

    private boolean retain;

    private long timestamp;

}
